public class h_11 {
    public static void main(String[] args) {
        int a,b,c;
        int d=0;
        for ( a=1;a<=4;a++){
            for(b=1;b<=4;b++){
                for ( c=1;c<=4;c++){
                    if(a!=b&&b!=c&&a!=c){
                        d++;
                    }
                }
            }
        }
        System.out.println("有"+d+"种");
    }
}
